<%@ taglib prefix="s" uri="/struts-tags" %>

            
<div id="detailTab">                  
   <s:actionerror />
   <s:form namespace="/survey" action="create" id="entity">
   <s:textfield name="name" label="%{getText('label.entity.name')}" size="15" maxlength="20" required="true" />
   <s:textfield name="vxml" label="%{getText('label.entity.vxml')}" size="30" maxlength="255" required="true"/>
   <s:textfield name="numberOfQuestions" label="%{getText('label.entity.numberOfQuestions')}" size="4" maxlength="2" required="true" />
   <s:select name="category" label="%{getText('label.entity.category')}" list="categories" listKey="id" listValue="name"  />
   <s:select name="type" label="%{getText('label.entity.type')}" list="surveyTypes"  />
   <s:radio name="voiceRecording" label="%{getText('label.entity.voiceRecording')}" list="#{'0':'No','1':'Yes'}" value='0' />
   <s:radio name="resultFollowup" label="%{getText('label.entity.resultFollowup')}" list="#{'false':'No','true':'Yes'}" value='false' />
   <s:radio name="displayResultAverage" label="%{getText('label.entity.displayResultAverage')}" list="#{'false':'No','true':'Yes'}" value='false' />
   <table>         
      <tr>
         <td colspan="2">
            <br />
            <s:submit value="Save" theme="simple" /> &nbsp; <input type="submit" value="Cancel" onclick="location.href='<s:url namespace="/survey" action="list" includeParams="none" />'; return false;" />
         </td>
      </tr>
   </table>           
   </s:form>
</div>

